@import '../../style/variable.scss';
@import '../../style/hairline.scss';
@import '../../style/ellipsis.scss';

.xxm-goods-ele{
    display: flex;
    &:not(:last-of-type){
        padding-bottom: 36px;
    }
    &--row{
        flex-direction: row;
    }
    &--col{
        flex-direction: column;
        position: relative;
        // border: 1px solid #f7f7f7;
        // padding: 10rpx;
        // &::after {
        //     @include hairline();
        // }
    }
    &__number{
      color:$grey;
      font-size:32px;
    }
    &__img{
        width: 240px;
        height: 240px;
        image{
            height: 100%;
            width: 100%;
            border-radius: 16px;
        }
        &--col{
            width: 100%;
            height: 100%;
        }
    }
    &__content{
        padding: 12px 0 0 26rpx;
        flex: 1;
        &--col{
            padding: 32px;
        }
    }
    &__title{
        color: $color;
        font-weight: 700;
        font-size: 16PX;
        max-width: 362px;

        padding-bottom: 10px;
    }
    &__desc{
        font-size: $sm-font-size;
        color: $grey;
        white-space: initial;
        @include multi-ellipsis(2);
        margin-bottom: 20px;
        min-height: 56rpx;
    }
    &__pricebox{
        position: relative;
        // margin-top: 36px;
        display: flex;
        align-items: flex-end;
        vertical-align: baseline;

    }
    &__price{
      color: $primary;
      font-size: 36px;
      padding-right: 8px;
      vertical-align: baseline;
    //   line-height: 0;

    }

    &__oldprice{
        color: $grey;
        font-size: 24px;
        text-decoration: line-through;
        vertical-align: baseline;
        padding-bottom: 8px;
        // line-height: 0;


      }
    &__add{
        position: absolute;
        right: 0;
        top: 0;
    }
    .yuan{
        font-size: $sm-font-size;
    }

      .position{ 
        position:absolute;
        width:1px;
        height:1px;
        right:48px;
        top:0
      }
    
}


.xxm-goods-view-ele{
    width: 640px;
    background-color: transparent;
    &__header{
        width: 100%;
        height: 500px;
        image{
            width: 100% !important;
            height: 100% !important;
        }

    }
    &__content{
        padding: 20px 32px;
        background-color: #fff;
    }
}